<mg-page id="home">
    <mg-header>
        <h3 class="title">{{title}}</h3>
    </mg-header>

    <mg-content>
        home test is right

        <div class="list">
            <div class="item label-left item-input">
                <label class="label">测试</label>
                <input type="text" v-model="view.input" placeholder="数据同步测试">
            </div>
        </div>

        <a link="#user/home" class="button button-block">test user</a>

        <a @tap="modal.view.input = 456" class="button button-block">set 456</a>

        <a @tap="alert" class="button button-block">alert</a>

        <a @tap="showUser" class="button button-block">modal user</a>
    </mg-content>

    <mg-modal page="user" handle="modal" view="view"></mg-modal>
</mg-page>